// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import vuex from "./vuex";
import axios from 'axios'
import qs from 'qs'
import {getCookie} from "./common/cookie";

Vue.config.productionTip = false

/* 设置默认的请求路径 */
axios.defaults.baseURL = "http://lanscarlos.top:1226"
Vue.prototype.$axios = axios;

/* 引入数据编码库 */
Vue.prototype.$qs = qs;

/* 引入vuex */
Vue.prototype.$store = vuex;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
